package com.cloudcc.mobile.util;

import java.util.Comparator;

import com.cloudcc.mobile.entity.LeadEntity;

/**
 * 
 * @author xiaanming
 * 
 */
public class PinyinLead implements Comparator<LeadEntity> {

	public int compare(LeadEntity o1, LeadEntity o2) {
		if (o1.getSortLetters().equals("@") || o2.getSortLetters().equals("#")) {
			return -1;
		} else if (o1.getSortLetters().equals("#")
				|| o2.getSortLetters().equals("@")) {
			return 1;
		} else {
			return o1.getSortLetters().compareTo(o2.getSortLetters());
		}
	}

}
